package com.springcloud.study.provider2.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: TODO
 * @Author dongguo
 * @Date 2020/4/3 18:39
 * @Version V1.0
 **/
@RestController
@RequestMapping("/test")
public class HelloController {

    private static final Logger LOGGER = LoggerFactory.getLogger(HelloController.class);

    @GetMapping("/hello")
    @ResponseBody
    public String hello() {
        LOGGER.info("------------------hello consul2222222--------------------");
        return "hello consul 2";
    }


}